* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 25px;
    text-align: center;
    flex: 1 1;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2rem;
}

body {
    background-color: lightslategray;
    color: white;
}
/*Header*/
header {
    background-color: black;
    position: fixed;
    width: 100%;
    top: 0;
}

header div {
    display: inline-flex;
    height: 3rem;
    /*justify is for row*/
    justify-content: space-between; 
    /*align in for column*/
    align-content: center;
    width: 100%;
    
}

header #logo {
    width: 4.3rem;
    height: auto;
}

header nav ul {
    display: flex;
    
}

header nav li {
    display: flex;
}

nav li a {
    text-decoration: none;
    font-family: "Monomaniac One", Courier, monospace;
    font-size: 1.2rem;
    color: white;
    padding: .74rem;
    width: 7rem;
}

nav li a:hover {
    background-color: rgb(42, 239, 253);
    color: black;
}

nav li a:active {
    background-color: white;
    color: black;
    font-size: .9rem;
}

@media only screen and (max-width: 580px) {
    nav li a {
        font-size: 1rem;
        width: 4rem;
        padding: 0.90012rem 0;
        border-left: .1rem solid white;
    }
}

@media only screen and (max-width: 425px) {
    nav li a {
        font-size: .7rem;
        width: 3.7rem;
        padding: 1.12012rem 0;
        
    }
    
    header {
        flex-shrink: 6;
        min-width: .1rem;
    }
}


/*Banner/Intro*/

.intro {
    background-image: url("../Images/banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 30rem;
    margin-top: 3rem;
    
}

.banner {
    background-color: rgba(0, 0, 0, .5);
    width: 100%;
    height: 30rem;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    font-family: "Jaini", "Cambria", system-ui;
}

.banner h2{
    padding: 2.5rem;
}

@media only screen and (max-width: 580px) {
    .intro h1 {
        font-size: 3rem;
    }

    .intro h2 {
        font-size: 1.5rem;
    }
    .intro h3 {
        display: none;
    }
}

@media only screen and (max-width: 425px) {
    .intro h1 {
        font-size: 2rem;
    }

    .intro h2 {
        font-size: 1rem;
    }
}

/*Vision*/


.vision {
    padding: 1rem 3rem;
    margin: 2rem;
}

.vision h3 {
    padding-top: 2rem;
}

@media only screen and (max-width: 580px) {
    .vision {
        padding: 2rem 3rem;
        margin: 0;
    }
}

@media only screen and (max-width: 425px) {
    .vision h2 {
        font-size: 1.5rem;
    }

    .vision h3 {
        padding-top: 1rem;
        font-size: .8rem;
    }
}


/*Content*/

.content {
    display: flex;
    width: 100%;
    height: 30rem;
    overflow: hidden;
    justify-content: center;
    align-content: center;
    padding: 2rem;
    background-color: white;
    color: rgb(36, 36, 36);
    
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem;
    border: 1rem double black;
    background-color: rgb(28, 184, 231);
}

.content section {
    display: flex;
    flex-flow: row wrap;
    justify-content: safe center;
    max-width: 30%;
    background-color: rgb(28, 184, 231);
    align-items: center;
    height: 20rem;
    margin-top: 3rem;
    overflow-y: scroll;
    padding: 2rem;
}

.content section h3, h4 {
    padding: 0 2rem 2rem 2rem;
}

.content section h3 {
    text-decoration: underline;
}

.content section p {
    padding: 1rem 0;
}

.content section li {
    list-style: square inside;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.content p::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.content p {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

@media only screen and (max-width: 1024px) {
    .content {
        display: flex;
        flex-flow: row nowrap;
        margin-top: 2rem;
        align-content: center;
        width: 100%;
        height: 20rem;
        margin: 0;
    }

    .content img {
        max-width: 55%;
        height: auto;
        margin: 0;
    }

    .content section {
        max-width: 100%;
        height: 15rem;
        overflow-y: scroll;
        margin-top: .5rem;
        padding: 1rem;
    }
}

@media only screen and (max-width: 580px) {
    .content {
        display: flex;
        flex-flow: row nowrap;
        margin-top: 2rem;
        align-content: center;
        width: 100%;
        height: 15rem;
        margin: 0;
    }

    .content img {
        max-width: 55%;
        height: auto;
        margin: 0;
        border: .3rem solid black;
    }

    .content p {
        max-width: 100%;
        height: 10rem;
        overflow-y: scroll;
        margin-top: 0rem;
        padding: 1rem; 
        font-size: .64rem;
    }

    .content section {
        max-width: 100%;
        height: auto;
        margin-top: 0;
    }

    .content section h3, h4 {
        padding: 0 0 2rem 0;
    }

    .content section h3 {
        font-size: 1rem;
    }
    .content section h4 {
        font-size: .8rem;
    }

    .content section li {
        font-size: .64rem;
    }
}

@media only screen and (max-width: 430px) {
   
    .content {
        padding: 2rem 1rem;
    }

    .content section {
        padding: 1rem .2rem;
    }

    .content section h3, h4 {
        padding: 0 0 2rem 0;
    }

    .content section h3 {
        font-size: .8rem;
    }
    .content section h4 {
        font-size: .7rem;
    }
    
    
}

/*Footer*/

footer {
    background-color: black;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
}

footer p {
    font-size: .7rem;
}

@media only screen and (max-width: 580px) {
    footer p {
        font-size: .4rem;
    }

    footer h5 {
        font-size: .5rem;
    }
}